package com.brush.brushcommon.common.sys.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.brush.brushcommon.common.BasicEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 系统通告表
 * </p>
 *
 * @author debug
 * @since 2024-07-15
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("sys_notice")
@Schema(name = "Notice对象", description = "系统通告表")
public class Notice  extends BasicEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "通告标题")
    private String title;

    @Schema(description = "通告内容")
    private String content;

    @Schema(description = "通告描述")
    private String descr;

    @Schema(description = "发布时间，默认为当前时间")
    private LocalDateTime publishTime;

    @Schema(description = "是否撤销（1：撤销，0：不撤销），默认为0")
    private Boolean isCancel;

    @Schema(description = "优先级（值越低，优先级越高）")
    private Byte level;

    @Schema(description = "撤销时间")
    private LocalDateTime cancelTime;

    @Schema(description = "删除时间")
    private LocalDateTime deleteTime;

    @Schema(description = "创建人")
    private String gmtFounder;
}
